package cn.yx.common.security.constants;

/**
 * <p>认证和授权相关的Redis缓存前缀</p>
 *
 * @author Wgssmart
 */
public class SecurityRedisCacheConstant {

    private SecurityRedisCacheConstant() {
    }

    /**
     * jwt token的缓存前缀
     */
    public static final String JWT_TOKEN_PREFIX = "yx-security-token::user";

    /**
     * 普通验证码登录时验证码缓存前缀
     */
    public static final String CODE_LOGIN_PREFIX = "yx-security-verify-code-login::";
    /**
     * 普通验证码注册时验证码缓存前缀
     */
    public static final String CODE_REG_PREFIX = "yx-security-verify-code-reg::";
    /**
     * 普通验证码重置登录密码时验证码缓存前缀
     */
    public static final String CODE_RESET_LOGIN_PWD_PREFIX = "yx-security-verify-code-reset-login-pwd::";
    /**
     * 普通验证码重置支付密码时验证码缓存前缀
     */
    public static final String CODE_RESET_PAY_PWD_PREFIX = "yx-security-verify-code-reset-pay-pwd::";

    /**
     * 短信验证码登录时验证码缓存前缀
     */
    public static final String SMS_CODE_LOGIN_PREFIX = "yx-security-sms-code-login::";
    /**
     * 短信验证码注册时验证码缓存前缀
     */
    public static final String SMS_CODE_REG_PREFIX = "yx-security-sms-code-reg::";
    /**
     * 短信验证码重置登录密码时验证码缓存前缀
     */
    public static final String SMS_CODE_RESET_LOGIN_PWD_PREFIX = "yx-security-sms-code-reset-login-pwd::";
    /**
     * 短信验证码重置支付密码时验证码缓存前缀
     */
    public static final String SMS_CODE_RESET_PAY_PWD_PREFIX = "yx-security-sms-code-reset-pay-pwd::";
    /**
     * 短信验证码更换手机号时验证码缓存前缀
     */
    public static final String SMS_CODE_UPDATE_PHONE_PREFIX = "yx-security-sms-code-update-phone::";

}
